package com.oocl.parser;

import java.io.IOException;
import com.oocl.pojo.Protocol;
import com.oocl.server.UserThread;

/**
 * Protocol 解析类
 * @author MAIKE
 *
 */
public interface ProtocolParser {
	
	/**
	 * 解析私聊协议
	 * @param protocol
	 * @param out
	 */
	public void parsePrivateTalk(Protocol protocol) throws IOException;
	/**
	 * 解析群聊协议
	 * @param protocol
	 * @param out
	 */
	public void parseGroupTalk(Protocol protocol) throws IOException;
	/**
	 * 解析个人震屏
	 * @param protocol
	 * @param out
	 */
	public void parsePrivateShake(Protocol protocol) throws IOException;
	/**
	 * 解析所有用户震屏
	 * @param protocol
	 * @param out
	 */
	public void parseGroupShake(Protocol protocol) throws IOException;
	/**
	 * 解析用户退出
	 * @param protocol
	 * @param out
	 */
	public void parseLoyout(Protocol protocol,UserThread userThread) throws IOException;
	/**
	 * 解析用户登陆
	 * @param protocol
	 * @param out
	 */
	public void parseLoadUsers(Protocol protocol,UserThread userThread) throws IOException;
}
